
 {extend name="index\index"}
 {block name="main"}
 {css href="/static/home/css/media.css" /}
<div id="js-main" class="main channel-main" style="min-height: 120px;">
    <div class="aside">
        <div class="widget-box ">
            {volist name="writer" id="wr"}
            <div class="widget widget-media-channel-info">
                <div class="media-channel-info subscribed js-channel-subscribe-item" data-fromid="m117804"
                     >
<<<<<<< HEAD
                    {if empty($wr['icon'])}
                    <img src="/static/personal/img/batman.jpg" alt="" class="channel-image">
                    {else/}
                    <img class="channel-image" src="{$wr['icon']}">
                    {/if}
=======
                    <img class="channel-image" src="/{$wr['icon']}">
>>>>>>> 5f3922fa251ab9eb7684e7ce37e67fdc9138030f
                    <p class="channel-name">{$wr['nickname']}</p>
                         {if !session('?tel')}
                        <button class="subs" data-index="{$wr['uid']}"  style="display: block;left: 65px;position: static">关注</button>
                        {else /}

                            {in name="$wr['uid']" value="$att3"}
                                <button class="unsubs" data="{$wr['uid']}" style="display: block;left: 65px">已关注</button>
                                <button class="subs" data="{$wr['uid']}" style="display: none;left: 65px">关注</button>
                            {else/}
                                <button class="unsubs" data="{$wr['uid']}" style="display: none;left: 65px">已关注</button>
                                <button class="subs" data="{$wr['uid']}" style="display: block;left: 65px">关注</button>
                            {/in}
                            
                        {/if}
                </div>
            </div>
            {/volist}
        </div>
    </div>
    <div class="channel-top" style="display: block;">
        <div class="float-left channel-news-nav rendered">
            <div class="tab tab-0" data-index="0">主页</div>
        </div>
    </div>
    <div class="channel-news channel-news-0">
        {volist name="author" id="au"}
        <a class="item doc style-small-image style-content-middle" href="/articles/{$au['aid']}"
           target="_blank" id="{$au['aid']}">
            <div class="doc-image-small-wrapper">
                <div class="doc-image-box">
                    <img class="doc-image doc-image-small"
                         src="/{$au['amage']}">


                </div>
            </div>
            <div class="doc-content">
                <div class="doc-content-inline">
                    <div class="doc-title">{$au['aname']}</div>
                    <div class="doc-info">


                        <span class="source">{$au['nickname']}</span>

                        <span class="date">{$au['regtime']|date="Y-m-d H:i",###}</span>
                        
                    </div>
                </div>
            </div>
        </a>
        {/volist}
</div>
  

 {/block}
